


#ifndef _GLOABLE_FUNCTION_H_
#define _GLOABLE_FUNCTION_H_
#include "def.h"


#define MAX_COMPRESS_BUFF (1024*100)
#define DEF_COMPRESS_HEADER 3

extern bool DecompressProtocol(const BYTE* compressedProtocolBuff, 
	BYTE* decompressBuff, 
	unsigned int decompressBuffLength, 
	unsigned int headerLength = DEF_COMPRESS_HEADER );

extern bool CompressProtocol(BYTE* protocolBuff, 
	unsigned int protocolLength, 
	unsigned int protocolBuffLength,
	unsigned int headerLength = DEF_COMPRESS_HEADER );
#endif